﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserEdit.aspx.cs" Inherits="Public_UserEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>用户详情显示</title>
    <link href="../../CSS/css.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript" src="../../js/JS_common.js"></script>
    <script language="javascript" type="text/javascript" src="../../js/GeneralPage.js"></script>
    <script language="javascript" type="text/javascript" src="../../js/JS_UserEdit.js"></script>
    <base target="_self" />
    <style type="text/css">
        .style1
        {
            width: 193px;
        }
        .style2
        {
            height: 20px;
        }
        </style>
</head>
<body>
    <form id="form1" runat="server">   
    
<div id="MainContent" >         
 <div class="tit" id="mcTitle" runat="server">
    用户管理
 </div>  
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    <div>
        <table style="width:100%">
            <tr>
                <td width="45%" valign="top">
                    <table >
                    <tbody>
                        <tr>
                            <td colspan="2">
                                
                                <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
                                    <ProgressTemplate>
                                        <asp:Label ID="Label1" runat="server" Font-Bold="true" ForeColor="red" Text="信息处理中..."></asp:Label>
                                    </ProgressTemplate>
                                </asp:UpdateProgress>
                            </td>
                        </tr>
                        <tr>
                            <td style="width:100px">用户账号：</td>
                            <td class="style2" nowrap>
                            <input id="TxtAcount" runat="server" type="text" onblur="AcountExist();" maxlength="30"/><label title="" style="color:Red">*</label>
                                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                    <ContentTemplate>
                                        <asp:Label ID="LblAcount" runat="server" ForeColor="red" Text=""></asp:Label>
                                        <%-- (必填)--%>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>    
                        </tr>
                        <tr>
                            <td>角色：</td>
                            <td>
                                <asp:DropDownList ID="DDLUserRole" runat="server" Width="155px" OnSelectedIndexChanged="DDLUserRole_IndexChanged" AutoPostBack="true">
                                </asp:DropDownList>
                                <label title="" style="color:Red">*</label>    <%-- (必填)--%>
                            </td>    
                        </tr>
                        <tr>
                            <td>真实名字：</td>
                            <td>
                                <asp:TextBox ID="TxtUserName" runat="server" MaxLength="30"></asp:TextBox><label title="" style="color:Red">*</label>
                                    <%-- (必填)--%></td>    
                        </tr>
                        <%--<tr>
                            <td class="style2">公司：</td>
                            <td class="style2">
                                <asp:DropDownList ID="ddlCompany" runat="server" Width="155px"  OnChange="SelSpecRole(this,'txSpecRole')">
                                </asp:DropDownList>
                                <input id="txSpecRole" type="text" style="display:none" runat="server" maxlength="50"/>
                                <label title="" style="color:Red">*</label> 
                                <asp:TextBox ID="TxtCompany" runat="server"></asp:TextBox><label title="" style="color:Red">*</label>
                                     (必填)</td>    
                        </tr>--%>
                        <tr>
                            <td>部门：</td>
                            <td>
                                <asp:DropDownList ID="ddlDepartment" runat="server" Width="155px" OnChange="SelSpecRole(this,'TxtDepartment')">
                                </asp:DropDownList>
                                <input type="text" id="TxtDepartment" runat="server" style="display:none" maxlength="50"/>
                            </td>    
                        </tr>
                        <asp:Panel ID="P_LockInfo" runat="Server">
                        <tr>
                            <td>是否锁定：</td>
                            <td>
                                <asp:DropDownList ID="DDLIsLock" runat="server" Width="155px">
                                    <asp:ListItem Value="0">否</asp:ListItem>
                                    <asp:ListItem Value="1">是</asp:ListItem>
                                </asp:DropDownList>
                            </td>    
                        </tr>
                        <tr>
                            <td>CS管理员：</td>
                            <td>
                                <asp:DropDownList ID="DDLIsCsAdmin" runat="server" Width="155px">
                                    <asp:ListItem Value="0">否</asp:ListItem>
                                    <asp:ListItem Value="1">是</asp:ListItem>
                                </asp:DropDownList>
                            </td>    
                        </tr>
                        </asp:Panel>
                    </tbody>
                    </table>
                </td>
                <td>
                    <table>
                        <tr><td>职务</td><td><asp:TextBox runat="server" ID="TB_DUTY" MaxLength = "50"></asp:TextBox></td></tr>
                        <tr><td>工作电话</td><td><asp:TextBox runat="server" ID="TB_WORKPHONE" MaxLength= "25"></asp:TextBox></td></tr>
                        <tr><td>手机</td><td><asp:TextBox runat="server" ID="TB_MOBILE" MaxLength="25"></asp:TextBox></td></tr>
                        <tr><td>OA邮箱</td><td><asp:TextBox runat="server" ID="TB_EMAILBYOA" MaxLength="100" ></asp:TextBox><asp:Label ID="L_DefaultOA" runat="server" Text=""></asp:Label></td></tr>
                        <tr><td>189邮箱</td><td><asp:TextBox runat="server" ID="TB_EMAILBY189" MaxLength="100"></asp:TextBox><asp:Label ID="L_Default189" runat="server" Text=""></asp:Label></td></tr>
                        <tr><td>第三方邮箱</td><td><asp:TextBox runat="server" ID="TB_EMAILTHIRD" MaxLength="100"></asp:TextBox><asp:Label ID="L_DefaultThird" runat="server" Text=""></asp:Label></td></tr>
                        <tr>
                            <td>是否发送</td>
                            <td>
                                <asp:DropDownList ID="DDL_FLAG" runat="server" Width="100">
                                    <asp:ListItem Value="0">否</asp:ListItem>
                                    <asp:ListItem Value="1">是</asp:ListItem>
                                </asp:DropDownList>                
                                &nbsp;(给他人发送邮件时是否发送个人信息)
                            </td>
                        </tr>
                        <asp:Panel ID="P_ToSendEmail" runat="server">
                        <tr><td colspan="2"><asp:CheckBox ID="CB_ToSendEmail" runat="server" /><font color="blue">给邮箱发送帐号信息</font></td></tr>                                        
                        </asp:Panel>
                    </table>
                </td>
            </tr>
        </table>
        
        <%-- <div id="div_other" runat="server" style="width:100%; font-weight:bold">创建信息-<span style="; cursor:pointer; color:Red" onclick="DivShow('divOther',this);">更多</span></div> --%>
        <div id="divOther" style="width:100%; display:none">
            
            <table style="width:100%">
            <tbody>            
            <tr>
                <td style="width:100px">创建者：</td>
                <td>
                    <asp:TextBox ID="TxtCreator" runat="server"></asp:TextBox>
                </td>    
            </tr>
            <tr>
                <td>创建时间：</td>
                <td>
                    <asp:TextBox ID="TxtCreateTime" runat="server"></asp:TextBox>
                </td>    
            </tr>
            <tr>
                <td>修改者：</td>
                <td>
                    <asp:TextBox ID="TxtUpdater" runat="server"></asp:TextBox>
                </td>    
            </tr>
            <tr>
                <td>修改时间：</td>
                <td>
                    <asp:TextBox ID="TxtUpdateTime" runat="server"></asp:TextBox>
                </td>    
            </tr>
            <tr>
                <td>最后登录IP：</td>
                <td>
                    <asp:TextBox ID="TxtLastIp" runat="server"></asp:TextBox>
                </td>    
            </tr>
            <tr>
                <td>最后登录时间：</td>
                <td>
                    <asp:TextBox ID="TxtLastUpdateTime" runat="server"></asp:TextBox>
                </td>    
            </tr>
        </tbody>
        </table>
        
       </div>
        <%--  <div id="div_pwd" runat="server" style="width:100%; font-weight:bold">密码信息-<span style="; cursor:pointer; font-weight:bold; color:Red" onclick="DivShow('divPwd',this);" >更多</span></div>--%>
        <%-- <div id="divPwd" style="width:100%; display:none"> --%>
            <table style="width:100%">
            <tbody>            
            <tr>
                <td style="width:100px">新密码：</td>
                <td colspan="2">
                <asp:TextBox ID="TxtNewPwd" runat="server" Width="160px" MaxLength="30"></asp:TextBox>
                    <%-- <input ID="TxtNewPwd" runat="server" type="password" /> --%><label id="lbnewpwd" runat="server" title="" style="color:Red">*</label>
                     </td>    
                    <td>
                            &nbsp;</td>
            </tr>
            <tr>
                <td>确认密码：</td>
                <td class="style1">
                    <asp:TextBox ID="TxtNewPwd2" runat="server" onblur="CheckPassword();" 
                        TextMode="Password" Width="160px" MaxLength="30"></asp:TextBox>
                        
                    <%-- <input id="TxtNewPwd2" runat="server" type="password"  />--%>  <label id="lbnewpwd2"  runat="server" title="" style="color:Red">*</label>
                    </td>    
 
            </tr>
            <tr> 
                <td>找回密码提示：</td>
                <td colspan="2">
                    <asp:TextBox ID="TxtPwdHint" runat="server" Width="160px" MaxLength="100"></asp:TextBox>
                </td>    
            </tr>
        </tbody>
        </table>
        
        <%-- </div>--%>
<%--        <div id="div_Details" runat="server" style="width:100%; font-weight:bold">详细信息-<span style="; cursor:pointer; font-weight:bold; color:Red" onclick="DivShow('divDetails',this);">更多</span></div>
        <div id="divDetails" style="width:100%; display:none">
        
        </div>--%>
        
        
        <div style="width:100%; text-align:center">
            <%--<input id="Button1" type="button" value="全 选" onclick="CheckAllByName('chk_item',1);" class="buttonface" />--%>
            <%--<input id="BtnInsert" type="button" value="提交" style="display:none"
                class="buttonface" onclick="BtnInsert" />--%>
            <input id="BtnUpdate" class="buttonface" runat="server"
                type="button" value=" 提 交 " onserverclick="BtnUpdate_ServerClick" />
            <input id="btnBack" type="button" class="buttonface" value="返回" runat="server" onserverclick="btnBack_ServerClick"/>
        </div>
    </div>
    <div style="display:none">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:Button ID="BtnInsertData" runat="server" Text="submit" OnClick="BtnInsertData_Click" />  <%--插入数据--%>
                
                <asp:Button ID="BtnUpdateData" runat="server" Text="submit" OnClick="BtnUpdateData_Click" />  <%--修改数据--%>
                
                <asp:Button ID="BtnExsit" runat="server" Text="判断Code" OnClick="BtnExsit_Click" /> <%--判断用户名是否存在--%>
                
                <asp:TextBox ID="TextBox1" runat="server" Text=""></asp:TextBox>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
        
    </form>
</body>
</html>